package com.baige.service.user.entity;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户额度账户
 * </p>
 *
 * @author wulg
 * @since 2018-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_quota_account")
public class UserQuotaAccount extends Model<UserQuotaAccount> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 用户可用额度
     */
    @TableField("user_quota")
    private BigDecimal userQuota;
    /**
     * 用户总额度
     */
    @TableField("user_total_quota")
    private BigDecimal userTotalQuota;
    /**
     * 用户芝麻分额度
     */
    @TableField("user_quota_zhima_scope")
    private BigDecimal userQuotaZhimaScope;
    /**
     * 用户租包次数
     */
    @TableField("user_quota_rent_time")
    private BigDecimal userQuotaRentTime;
    /**
     * 用户完善信息
     */
    @TableField("user_quota_complete")
    private BigDecimal userQuotaComplete;
    /**
     * 用户冻结额度
     */
    @TableField("freeze_quota")
    private BigDecimal freezeQuota;
    /**
     * 修改时间
     */
    @TableField("modify_time")
    private Date modifyTime;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
